package com.xiyi.shouxin.conf;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ProjectConfig {
    private static String BASEPATH = "/";

    @Value(value = "${project.basePath}")
    private void initBasePath(String BASEPATH) {
        ProjectConfig.BASEPATH = BASEPATH;
    }

    public static String getBasePath() {
        return ProjectConfig.BASEPATH;
    }
}
